﻿<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <!-- SYSLIB0003: CAS is obsolete, but we still have tests referencing it -->
    <NoWarn>$(NoWarn);SYSLIB0003</NoWarn>
    <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetFrameworkCurrent)</TargetFrameworks>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="System\DirectoryServices\ActiveDirectorySecurityTests.cs" />
    <Compile Include="System\DirectoryServices\ActiveDirectory\DomainControllerTests.cs" />
    <Compile Include="System\DirectoryServices\DirectoryEntryTests.cs" />
    <Compile Include="System\DirectoryServices\DirectoryServicesPermissionTests.cs" />
    <Compile Include="System\DirectoryServices\DirectoryServicesTests.cs" />
    <Compile Include="System\DirectoryServices\DirectorySynchronizationTests.cs" />
    <Compile Include="System\DirectoryServices\DirectoryVirtualListViewContextTests.cs" />
    <Compile Include="System\DirectoryServices\DirectoryVirtualListViewTests.cs" />
    <Compile Include="System\DirectoryServices\PropertyCollectionTests.cs" />
    <Compile Include="System\DirectoryServices\SortOptionTests.cs" />
    <Compile Include="System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransportTests.cs" />
    <Compile Include="System\DirectoryServices\ActiveDirectory\DirectoryContextTests.cs" />
    <Compile Include="System\DirectoryServices\ActiveDirectory\ForestTests.cs" />
    <Compile Include="System\DirectoryServices\ActiveDirectory\ActiveDirectoryTests.cs" />
    <Compile Include="System\DirectoryServices\ActiveDirectory\TrustHelperTests.cs" />
    <Compile Include="$(CommonTestPath)System\DirectoryServices\LdapConfiguration.cs"
             Link="Common\DirectoryServices\LdapConfiguration.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="$(CommonTestPath)System\DirectoryServices\LDAP.Configuration.xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
    <Compile Include="System\DirectoryServices\DirectoryServicesTests.Windows.cs" />
    <Compile Include="System\DirectoryServices\ActiveDirectoryComInterop.cs" />
    <ProjectReference Include="..\src\System.DirectoryServices.csproj" />
    <ProjectReference Include="..\..\System.Security.Permissions\src\System.Security.Permissions.csproj" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
    <Reference Include="System.DirectoryServices" />
  </ItemGroup>
</Project>
